<template>
	<div id="summernote" v-el:note>{{content}}</div>	
</template>

<style lang="css" src="summernote-webpack-fix/dist/summernote.css"></style>
<script>
//	import 'summernote-webpack-fix/dist/summernote.css';
	import 'summernote-webpack-fix/dist/summernote.js';
	import 'summernote-webpack-fix/dist/lang/summernote-zh-CN.js';
	
	export default {
		props: {
			content: {
				type: String
			},
		},
		methods: {
			get() {				
				return $(this.$els.note).summernote('code');
			}
		},
		ready() {
			let self = this;
  		$(this.$els.note).summernote({ 
				lang: 'zh-CN'				
			});			
		}
	}	
</script>